<template>
  <panel>
    <el-tabs v-model="activeName" @tab-click="handleClick">
      <el-tab-pane label="项目信息" name="first">
        <projectInfo></projectInfo>
      </el-tab-pane>
      <el-tab-pane label="楼栋信息" name="second">楼栋信息</el-tab-pane>
      <el-tab-pane label="房间信息" name="third">
        <roomInfo></roomInfo>
      </el-tab-pane>
    </el-tabs>
  </panel>
</template>

<script>
  import projectInfo from "@/pages/house/projectInfo";
  import roomInfo from "@/pages/house/roomInfo";
  export default {
    components:{
      projectInfo,
      roomInfo
    },
    data() {
      return {
        activeName: 'first'
      };
    },
    methods: {
      handleClick(tab, event) {
      //  alert(tab.name)
      }
    }
  };
</script>

<style>

</style>
